<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page  import="java.util.*,com.eypg.pojo.Producttype;"%>
<%
	String path = request.getContextPath();
%>
<h2 class="contentTitle">添加商品</h2>
<div style="display:block; overflow:hidden; padding:0 10px; line-height:21px;">
	<div class="tabs">
		<div class="tabsContent">
			<div>
				<form method="post" enctype="multipart/form-data" action="http://localhost:8080/fileUpload/uploadImage.action" class="pageForm required-validate" onsubmit="return iframeCallback(this)">
					<div class="pageFormContent" layoutH="100">
						<div class="pageFormContent nowrap" style="padding-left: 20px;">
							<dl>
								<dt>商品名称：</dt>
								<dd>
									<input class="required" name="productName" type="text" alt="商品名称" />
								</dd>
							</dl>
							<dl>
								<dt>商品价格：</dt>
								<dd>
									<input class="required" name="productPrice" type="text" alt="商品价格" />
								</dd>
							</dl>
							<dl>
								<dt>商品买入价格：</dt>
								<dd>
									<input name="productRealPrice" type="text" alt="商品买入价格" ></input>
								</dd>
							</dl>
							<dl>
								<dt>商品标题：</dt>
								<dd>
									<input class="required" name="productTitle" type="text" alt="商品标题" />
									<br />
								</dd>
							</dl>
							<dl>
								<dt>商品类型：</dt>
								<dd>
									<select class="combox" name="productType" id="productType">
										<option value="0">请选择商品类型</option>
										<s:iterator var="pType" value="typeList">
											<option value="${pType.typeId}">${pType.typeName }</option>
										</s:iterator>
									</select>
								</dd>
							</dl>
							<dl>
								<dt>商品主图：</dt>
								<dd>
									<input name="headImage" type="file" alt="商品主图"/>
								</dd>
							</dl>
							<dl>
								<dt>商品详情：</dt>
								<dd>
									<textarea class="editor" name="description" rows="15" cols="100"
										upLinkUrl="upload.php" upLinkExt="zip,rar,txt" 
										upImgUrl="<%=path %>/fileUpload/updateFile.action" upImgExt="jpg,jpeg,gif,png" 
										upFlashUrl="upload.php" upFlashExt="swf">
									</textarea>
								</dd>
							</dl>
						</div>
					</div>
					<div class="formBar">
						<ul>
							<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
							<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
						</ul>
					</div>
				</form>
			</div>
			
			<div>
			</div>
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>
</div>
